export const getToken = () => {
    // Retrieve the token from localStorage
    return localStorage.getItem('token2');
  };
  
  export const setToken = (token22) => {
    // Save the token to localStorage
    localStorage.setItem('Token2', token2);
  };
  
  export const removeToken = () => {
    // Remove the token from localStorage
    localStorage.removeItem('Token2');
  };
  
  export const GetHandleId = () => {
    // Remove the token from localStorage
    return Number(localStorage.getItem('handleId'));
  };

  export const setHandleId = (token2) => {
    // Save the token to localStorage
    localStorage.setItem('handleId', token2);
  };
  
